package com.niit.session23.io;

import java.io.FileReader;
import java.io.IOException;

public class FileReaderDemo {
	public static void main(String[] args) {
		FileReader fileReader = null;
		try {
			fileReader = new FileReader("G:\\Java\\input\\input_test.txt");
			char[] text = new char[20];
			fileReader.read(text);
			for (char c : text) {
				System.out.print(c);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}finally {
			try {
				fileReader.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		
	}

}
